package cn.liit.weixin.message.model.resp;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import cn.liit.weixin.message.type.RespMessageType;

/**
 * 音乐消息
 * @author boqi.zhang
 */
@XStreamAlias("xml")
public class MusicMessage extends RespBaseMessage{
	
	private Music Music; // 音乐  


	public MusicMessage(Music music) {
		super(RespMessageType.RESP_MESSAGE_TYPE_MUSIC.getType());
		Music = music;
	}

	public Music getMusic() {
		return Music;
	}

	public void setMusic(Music music) {
		Music = music;
	}

	@Override
	public String toString() {
		return "MusicMessage [Music=" + Music + "]";
	}
	public static class Music {
		
		private String Title;//音乐名称
		private String Description;//音乐描述
		private String MusicUrl;//音乐链接
		private String HQMusicUrl;//高质量音乐链接，WIFI环境优先使用该链接播放音乐
		private String ThumbMediaId;//缩略图的媒体id,通过素材管理接口上传多媒体文件,得到的id
		
		public Music() {
			super();
		}
		
		public Music(String title, String description, String musicUrl,
				String hQMusicUrl, String thumbMediaId) {
			super();
			Title = title;
			Description = description;
			MusicUrl = musicUrl;
			HQMusicUrl = hQMusicUrl;
			ThumbMediaId = thumbMediaId;
		}
		
		public String getTitle() {
			return Title;
		}
		
		public void setTitle(String title) {
			Title = title;
		}
		public String getDescription() {
			return Description;
		}
		
		public void setDescription(String description) {
			Description = description;
		}
		
		public String getMusicUrl() {
			return MusicUrl;
		}
		
		public void setMusicUrl(String musicUrl) {
			MusicUrl = musicUrl;
		}
		public String getHQMusicUrl() {
			return HQMusicUrl;
		}
		
		public void setHQMusicUrl(String hQMusicUrl) {
			HQMusicUrl = hQMusicUrl;
		}
		
		public String getThumbMediaId() {
			return ThumbMediaId;
		}
		
		public void setThumbMediaId(String thumbMediaId) {
			ThumbMediaId = thumbMediaId;
		}

		@Override
		public String toString() {
			return "Music [Title=" + Title + ", Description=" + Description
					+ ", MusicUrl=" + MusicUrl + ", HQMusicUrl=" + HQMusicUrl
					+ ", ThumbMediaId=" + ThumbMediaId + "]";
		}
	}
}
